#pragma once

#include "IResource.h"

class Avatar : public IResource
{
public:
	class Attribute
	{
	public:
		typedef std::map<HashedString, Attribute> Map_t;
		typedef std::pair<HashedString, Attribute> Pair_t;

		std::map<HashedString, HashedString> attributes;
	};

	static const HashedString resourceType;

	bool ToXML( tinyxml2::XMLPrinter& printer );
	bool FromXML( tinyxml2::XMLElement* element );

	const HashedString& getResourceType() const;
	
	Attribute::Map_t& Attributes();
protected:
	Attribute::Map_t m_attributes;

};